/* This is a generated file. Don't edit. Edit the source instead.
 */

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include "io.h"
#include "log.h"
#include "sphashd.h"

int hc_send_add_hash(hc_t *hc, const char *filename, const char *hash_base32, const char *leaves_base64, double mibs_per_sec)
{
    int rc = hc_send_command(hc, "add-hash$%s$%s$%s$%lf|", filename ? filename : "", hash_base32 ? hash_base32 : "", leaves_base64 ? leaves_base64 : "", mibs_per_sec);
    return rc;
}

int hc_send_fail_hash(hc_t *hc, const char *filename)
{
    int rc = hc_send_command(hc, "fail-hash$%s|", filename ? filename : "");
    return rc;
}
